; Draws the system panel
DrawPanel:
	ld de,_
	call GetPointer
	xor a	; xpos
	ld l,55	; ypos
	ld b,9	; height
	ld c,12	; width
	call LargeSpriteAND
	ld de,++_
	call GetPointer
	xor a	; xpos
	ld l,55	; ypos
	ld b,9	; height
	ld c,12	; width
	call LargeSpriteOR
	ld a,1
	ld (TextX),a
	ld a,57
	ld (TextY),a
	call ReturnFreeRAM
	ld de,UserRAMEnd-UserRAM/100
	call Div16by16
	ld a,l
	call DispDecA
	ld a,'%'
	call PutChar		; display the free RAM Percentage
	ld a,75
	ld (TextX),a
	xor a
	call DispDecA
	ld a,'/'
	call PutChar
	xor a
	call DispDecA		; display appid/total
	ld de,+++_
	call GetPointer
	ld d,42
	ld e,56
	ld b,8
	call PutSpriteOR	; Display the logo
	ret
_	db "usr/share/system/panel_mask.bif",0
_	db "usr/share/system/panel.bif",0
_	db "usr/share/system/logo.bif",0
